package javaee.service.Impl;
import javaee.DAO.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;
    public void setUserDao(UserDao userDao)
    { this.userDao=userDao; }
    @Override
    public boolean login(String name, String password) {
        return userDao.login(name,password);
    }

    @Override
    public void save() {
        this.userDao.save();
        System.out.println("执行UserServiceImpl.save()");

    }
}
